package com.sm.tool.entity.request;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;
import java.util.List;

@Data
@ApiModel
public class AddActivityRequest {

    @NotNull
    @Length(min = 4, max = 36, message = "用户名长度 8位")
    @ApiModelProperty(value = "活动名称，长度:4-36",example = "开业典礼活动")
    private String activityName;

    @NotNull
   // @Pattern(regexp=" /^[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\\s+(20|21|22|23|[0-1]\\d):[0-5]\\d:[0-5]\\d$/",message = "时间格式错误")
    @ApiModelProperty(value = "开始时间",example = "2019-12-01 14:20:31")
    private Date startTime;

    @NotNull
    //@Pattern(regexp="[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\n",message = "时间格式错误")
    @ApiModelProperty(value = "结束时间",example = "2019-12-01 14:20:31" )
    private Date endTime;

    @NotNull
    @DecimalMax("1")
    @DecimalMin("0")
    @ApiModelProperty(value = "活动状态（0下线，1上线）",example = "0" )
    private Integer status;

    @ApiModelProperty(value = "该活动绑定券的信息")
    private List<ActivityBingTicketRequest> activityBingTicketRequestList;

}
